package com.bwie.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * Created by PC on 2016/11/1.
 */
public class Fragment0 extends Fragment {
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        TextView tv=new TextView(getActivity());
        tv.setText(getArguments().getString("title"));
        return tv;
    }
    public static Fragment getFragment(String title)
    {
        Fragment f0=new Fragment0();
        Bundle bundle=new Bundle();
        bundle.putString("title",title);
        f0.setArguments(bundle);
        return f0;
    }
}
